package com.site.wisdom_construction.service.integralSupermarketModule;

import com.site.wisdom_construction.dao.integralSupermarketModule.ConversionRecordDao;
import com.site.wisdom_construction.entity.integralSupermarketModule.ConversionRecord;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * @Author daiyifei
 * @Date 2022/1/18
 * @Description
 */
@Service
public class ConversionRecordService implements ConversionRecordDao {
    @Autowired
    private ConversionRecordDao conversionRecordDao;

    @Override
    public int insertConversionRecord(Map map) {
        return conversionRecordDao.insertConversionRecord(map);
    }

    @Override
    public int deleteConversionRecord(Map map) {
        return conversionRecordDao.deleteConversionRecord(map);
    }

    @Override
    public int updateConversionRecord(Map map) {
        return conversionRecordDao.updateConversionRecord(map);
    }

    @Override
    public List<ConversionRecord> findConversionRecordByPage(Map map) {
        return conversionRecordDao.findConversionRecordByPage(map);
    }

    @Override
    public long Total(Map map) {
        return conversionRecordDao.Total(map);
    }

    @Override
    public List<ConversionRecord> findConversionRecordByPagePerson(Map map) {
        return conversionRecordDao.findConversionRecordByPagePerson(map);
    }

    @Override
    public long totalByPerson(Map map) {
        return conversionRecordDao.totalByPerson(map);
    }

    @Override
    public List<ConversionRecord> findConversionRecordByWorkersId(Map map) {
        return conversionRecordDao.findConversionRecordByWorkersId(map);
    }
}
